package com.liujit.standard.basis.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liujit.standard.basis.admin.model.SysRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description 系统角色Mapper
 * @Author LiuJun
 * @Date 2021-03-26 09:00:34
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 查询角色权限
     *
     * @param roleId
     * @return
     */
    @Select("select menu_id from sys_role_menu where role_id = #{roleId}")
    List<Long> selectRoleByRoleId(@Param("roleId") Long roleId);

}